﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Sysgeprava.Entities
{
    public partial class ETAPA:BaseEntity
    {
        public ETAPA()
        {
            this.BOVINOes = new List<BOVINO>();
            this.HIST_ETAPA = new List<HIST_ETAPA>();
        }

        public int Id { get; set; }

        [Display(Name = "Descripcion")]
        [Required(ErrorMessage = "La Descripción es requerida")]
        public string Descripcion { get; set; }

        public virtual ICollection<BOVINO> BOVINOes { get; set; }
        public virtual ICollection<HIST_ETAPA> HIST_ETAPA { get; set; }

        public override string ToString()
        {
            return Descripcion;
        }
    }
}

